//
//  LSYWebView.h
//  TTClub
//
//  Created by RoyLei on 15/10/21.
//  Copyright © 2015年 TTClub. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "BNDOfficeDocKit.h"

@protocol CMWKWebDelegate <NSObject>

@optional

- (void)wk_decidePolicyForNavigationAction;

- (void)wk_didFailProvisionalNavigation;

- (void)wk_didFinishNavigation;

@end

typedef void(^LSYWebViewHightBlock)(CGFloat hight);

@interface LSYWebView : WKWebView <WKNavigationDelegate>

@property (nonatomic, assign) BOOL  isForbidScale;//default is YES
@property (nonatomic, weak) id<CMWKWebDelegate>webViewProxyDelegate;
@property (nonatomic, strong, readonly) NSURL *currentURL;
@property (copy, nonatomic) LSYWebViewHightBlock hightBlock;

- (NSMutableURLRequest *)setupUrlRequestWithUrl:(NSString *)urlString;
- (void)loadWebPage:(NSString *)htmlText;


@end
